package com.example.mybatis_study.mapper;

import com.example.mybatis_study.model.Articleinfo;
import com.example.mybatis_study.model.Userinfo;
import org.apache.ibatis.annotations.Mapper;
import org.omg.PortableInterceptor.USER_EXCEPTION;


import java.util.List;

/**
 * @InterfaceName ArticleMapper
 * @Description TODO
 * @Author H.
 * @Date 2023/5/4 21:03
 * @Version 1.0
 */
@Mapper
public interface ArticleMapper {
    List<Articleinfo> all();

    Articleinfo queryById(Integer id);

    int add(Articleinfo articleinfo);

    int modify(Articleinfo articleinfo);

    int del(Integer id);

    List<Articleinfo> querySort(String col, String sortBy);

    List<Articleinfo> queryArticleWithUser();
}
